package com.itheima.sh.dao;

import com.itheima.sh.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    //查询所有用户
    List<User> queryAllUsers();
    //【目标】查询id为1的用户及其订单信息
    User queryOneToMany(@Param("id") Long id);
    //2.在用户表中根据查询的用户id即1查询用户信息select * from tb_user where id=1;
    User queryUserById(@Param("id") Long id);
}
